<script>
	export default {
		onLaunch: function() {
      const obj = {
        url:'wss://api.smartbird.ltd/api/user/chat',
        headers:{Authorization: `Bearer ${this.$store.state.m_user.token}` }
      }
			this.$store.dispatch('m_scoket/connect',obj)
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/* #ifndef APP-NVUE */
	// @import '@/static/customicons.css';
	// 设置整个项目的背景色
	page {
		background-color: #f4f5f6;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
</style>
